#include "ice_credentials.h"

#include "ice_def.h"

#include <rtc_base/helpers.h>

namespace xrtc {

// 根据ICE_UFRAG和ICE_PWD的长度生成随机的IceParameters    
IceParameters IceCredentials::createRandomIceCredentials() {
    return IceParameters(rtc::CreateRandomString(ICE_UFRAG_LENGTH),
        rtc::CreateRandomString(ICE_PWD_LENGTH));
}

} // namespace xrtc


